package smashedapples.events
{	
	import flash.events.Event;
	
	import mx.validators.Validator;
	
	public class FormControlEvent extends Event
	{
		public static const ValidatorCreated : String = "FormControlEvents.ValidatorCreated";
		
		
		
		
		public var validator : Validator;
		
		
		public function FormControlEvent(type:String, cargo:*, bubbles:Boolean=false, cancelable:Boolean=false):void
		{
			super(type, bubbles, cancelable);
			
			
			switch( type)
			{
				
				case FormControlEvent.ValidatorCreated:
				 this.validator = cargo as Validator;
				break;
				
			}
			
		}
		
		
	}
}